package com.government.area.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.government.common.annotation.Excel;
import com.government.common.core.domain.BaseEntity;
import com.government.common.core.domain.entity.SysMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 园区信息对象 t_park_area
 * 
 * @author system
 * @date 2023-10-30
 */
@TableName("t_park_area")
@Data
public class ParkArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO )
    private Long id;

    /** $column.columnComment */
    private String name;

    private Long parentId;

    /** 子菜单 */
    @TableField(exist = false)
    private List<SysMenu> children = new ArrayList<SysMenu>();
}
